Timm Bäder [Mon, 19 Nov 2018 13:38:34 +0000 (13:38 +0000)]
Merge branch 'benzea/foreach-documentation' into 'master'
container: Document that removal from foreach is permissible
Closes #1461
See merge request GNOME/gtk!423
Benjamin Berg [Mon, 19 Nov 2018 12:48:36 +0000 (13:48 +0100)]
container: Document that removal from foreach is permissible
It is permissable to remove a widget using gtk_container_remove from the
gtk_container_foreach callback handler. Document this fact to make it
more discoverable.
Fixes #1461
Timm Bäder [Mon, 19 Nov 2018 07:41:36 +0000 (07:41 +0000)]
Merge branch 'akitouni/gdkvulkan-doc-typo' into 'master'
vulkancontext: fix typos in documentation
See merge request GNOME/gtk!417
Timm Bäder [Mon, 19 Nov 2018 07:40:39 +0000 (07:40 +0000)]
Merge branch 'more-nullable' into 'master'
g-i: Add some nullable annotations
See merge request GNOME/gtk!419
Christoph Reiter [Sun, 18 Nov 2018 12:36:50 +0000 (13:36 +0100)]
g-i: Add some nullable annotations
Based on grepping arg docs for NULL.
See https://gitlab.gnome.org/GNOME/pygobject/issues/261
Abderrahim Kitouni [Sat, 17 Nov 2018 18:35:47 +0000 (19:35 +0100)]
vulkancontext: fix typos in documentation
Timm Bäder [Thu, 15 Nov 2018 09:59:01 +0000 (09:59 +0000)]
Merge branch 'jjardon/no_G_TYPE_INSTANCE_GET_PRIVATE' into 'master'
Stop using G_TYPE_INSTANCE_GET_PRIVATE completely
See merge request GNOME/gtk!402
Timm Bäder [Wed, 14 Nov 2018 13:30:28 +0000 (13:30 +0000)]
Merge branch 'include-ft2build.h' into 'master'
font chooser: Properly include freetype headers
Closes #1432
See merge request GNOME/gtk!413
Timm Bäder [Tue, 13 Nov 2018 19:54:18 +0000 (20:54 +0100)]
widget: Fix size-allocate signal docs
Timm Bäder [Tue, 13 Nov 2018 19:53:14 +0000 (20:53 +0100)]
Use g_clear_pointer to unparent widgets
Timm Bäder [Thu, 16 Aug 2018 04:53:03 +0000 (06:53 +0200)]
widget: Don't pass a position to ->size_allocate
The values have been 0/0 for a long time now, so just drop the
GtkAllocation argument and replace it with width and height.
Timm Bäder [Tue, 13 Nov 2018 14:33:31 +0000 (15:33 +0100)]
docs: Add GtkEventControllerLegacy
Timm Bäder [Tue, 13 Nov 2018 14:28:28 +0000 (15:28 +0100)]
vulkancontext: Add missing error switch
Timm Bäder [Tue, 13 Nov 2018 14:14:10 +0000 (15:14 +0100)]
appchooserbutton: Remove priv pointer
Timm Bäder [Tue, 13 Nov 2018 14:13:47 +0000 (15:13 +0100)]
testappchooserbutton: Fix for class hierarchy change
Timm Bäder [Tue, 13 Nov 2018 14:01:21 +0000 (15:01 +0100)]
appchooserbutton: Inherit from GtkWidget
Timm Bäder [Tue, 13 Nov 2018 13:08:32 +0000 (14:08 +0100)]
render: Fix a position/size mixup
Fixes the foreigndrawing demo.
Timm Bäder [Tue, 13 Nov 2018 04:09:35 +0000 (05:09 +0100)]
toolbar: Remove dead code
The size definitely changes, otherwise ->size_allocate does not get
called.
Timm Bäder [Tue, 13 Nov 2018 04:09:24 +0000 (05:09 +0100)]
toolbar: Remove some unused defines
Matthias Clasen [Mon, 12 Nov 2018 18:51:56 +0000 (13:51 -0500)]
wayland: Adapt to settings portal api change
ReadAll now accepts an array of patterns.
Carlos Garnacho [Mon, 12 Nov 2018 10:05:46 +0000 (10:05 +0000)]
Merge branch 'scroll-event-propagation' into 'master'
eventcontrollerscroll: Conditionally propagate ::scroll
Closes #45
See merge request GNOME/gtk!250
Ernestas Kulik [Wed, 18 Jul 2018 13:34:39 +0000 (16:34 +0300)]
eventcontrollerscroll: Conditionally propagate ::scroll
Currently, gtk_event_controller_scroll_handle_event() always returns
TRUE if it is handled, which stops the propagation of the event. If
there’s a single GtkEventControllerScroll in the widget hierarchy, that
means that no others will run, depending on the propagation phase. In
Nautilus, this can be observed when adding a scroll controller to the
GtkScrolledWindow (ctrl-scrolling controls the zoom level) - either the
scrolling or the zooming breaks.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/45
Leonardo Taccari [Fri, 9 Nov 2018 21:13:30 +0000 (22:13 +0100)]
font chooser: Properly include freetype headers
freetype headers should be included via <ft2build.h> and then
indirectly via FT_*_H macros.
Fixes issue #1432.
Timm Bäder [Fri, 9 Nov 2018 19:18:13 +0000 (20:18 +0100)]
calendar: Remove unused struct member
Timm Bäder [Fri, 9 Nov 2018 18:37:55 +0000 (19:37 +0100)]
scrolledwindow: Remove some useless code
This is all being done already be the add_class/remove_class calls
before.
Timm Bäder [Fri, 9 Nov 2018 17:59:30 +0000 (18:59 +0100)]
scale: Don't set label css name to "label"
That's already the css name of all labels.
Timm Bäder [Fri, 9 Nov 2018 17:01:26 +0000 (18:01 +0100)]
colorscale: Remove x/y arguments from snapshot_scale
We only pass 0 anyway.
Jakub Steiner [Fri, 9 Nov 2018 14:37:08 +0000 (15:37 +0100)]
Adwaita: use HIG grey for bg_color
- refresh with a light bg color, use the new color palette
Jakub Steiner [Fri, 9 Nov 2018 10:19:41 +0000 (11:19 +0100)]
Adwaita: fix osd bg color
- don't try deriving from bg_color, osd should be consistent
for light & dark.
FIxes issue #1449
Adrien Plazas [Tue, 24 Jul 2018 12:37:57 +0000 (14:37 +0200)]
Adwaita: Propagate bg color to titlebar separator descendants
Gives the same background color to all separators descending from a
title bar than to its direct childrens.
This prevents separators which are in a titlebar but not direct children
from the widget with the titlebar style class from being almost
transparent and hence it prevent them from revealing the clear color of
the window's titlebar (black).
https://gitlab.gnome.org/GNOME/gtk/issues/1231
Jakub Steiner [Fri, 9 Nov 2018 07:27:49 +0000 (07:27 +0000)]
Merge branch 'wip/jimmac/insensitive-progress' into 'master'
Adwaita: draw insensitive progressbars
See merge request GNOME/gtk!360
Jakub Steiner [Fri, 9 Nov 2018 07:25:05 +0000 (07:25 +0000)]
Merge branch 'wip/jimmac/hig-colors-gtk4' into 'master'
Adwaita: use new HIG colors
See merge request GNOME/gtk!407
Jakub Steiner [Mon, 5 Nov 2018 15:10:50 +0000 (16:10 +0100)]
Adwaita: use new HIG colors
- blue selection color, success & destructive colors updates
- blueish tint for dark
Addresses issue #1443
Timm Bäder [Thu, 8 Nov 2018 04:19:48 +0000 (05:19 +0100)]
testpopup: Fix GtkEventControllerMotion::motion callback signature
Timm Bäder [Thu, 8 Nov 2018 04:19:30 +0000 (05:19 +0100)]
eventcontrollerlegact: Fix ::event docs
As discussed in !388.
Timm Bäder [Tue, 30 Oct 2018 15:31:09 +0000 (16:31 +0100)]
icontheme: Stop exporting gtk_icon_info_new_for_file
Timm Bäder [Tue, 30 Oct 2018 15:23:08 +0000 (16:23 +0100)]
icontheme: Stop exporting gtk_icon_theme_color_symbolic_pixbuf
Timm Bäder [Tue, 30 Oct 2018 15:18:23 +0000 (16:18 +0100)]
icontheme: Drop remaining emblem code
Timm Bäder [Mon, 29 Oct 2018 10:27:04 +0000 (11:27 +0100)]
icontheme: Don't reference nonexistent parameter in docs
Timm Bäder [Mon, 29 Oct 2018 10:26:05 +0000 (11:26 +0100)]
icontheme: Use a bit field in AsyncSymbolicData
176 -> 144 bytes
Timm Bäder [Mon, 29 Oct 2018 10:10:42 +0000 (11:10 +0100)]
icontheme: Stop strdup'ing css colors when loading
... symbolic icons.
Timm Bäder [Sun, 12 Aug 2018 15:42:58 +0000 (17:42 +0200)]
gl renderer: Properly retrieve matrix scale
So rotating offscreen nodes works.
Timm Bäder [Thu, 18 Oct 2018 10:00:47 +0000 (12:00 +0200)]
widget: Avoid some more ->priv accesses
Timm Bäder [Thu, 18 Oct 2018 08:53:32 +0000 (10:53 +0200)]
range: Remove multipress_gesture member
We don't need it in the instance struct since we only set it up and then
access it in its signal callbacks.
Timm Bäder [Wed, 17 Oct 2018 18:15:34 +0000 (20:15 +0200)]
widget: Some whitespace fixes
Daniel Boles [Mon, 5 Nov 2018 23:36:54 +0000 (23:36 +0000)]
Popover: Minimally document the ::closed signal
This is better than nothing at all. The wording is taken from Carlos's
commit message when he added this shortly before 3.12 (but skip Since).
Skip the bit from his commit message explaining what this replaced; we
don't need to say all the less good things our convenience API replaces.
Daniel Boles [Wed, 24 Oct 2018 18:48:45 +0000 (19:48 +0100)]
testtreelistmodel: Don't use non-standard function
as per
efd3758f6a779041ff552cb4c5163446fd951368 strcasecmp() is not a C
standard thing (not that we bothered including any header for it anyway)
and so this test failed to build on Windows with Microsoft Visual C.
Daniel Boles [Sat, 20 Oct 2018 14:19:11 +0000 (15:19 +0100)]
TreeMenu: Don't manually reinvent g_list_index()
g_list_index() "Gets the position of the element containing the given
data (starting from 0)." That is exactly what we were manually doing.
Javier Jardón [Wed, 7 Nov 2018 17:27:00 +0000 (17:27 +0000)]
gtk/gtktoolbutton.c: Document why we need to still use G_TYPE_INSTANCE_GET_PRIVATE
This is the excellent explanation from Emmanuele at
https://gitlab.gnome.org/GNOME/gtk/merge_requests/402#note_361210:
"
Every time you instantiate a type, the instance_init() function is called for each
parent type T_p of your type T; to preserve invariants, the class pointer inside
the instance data is set to the parent type before each invocation, until you hit
your type T. This means that calling GET_CLASS() inside an instance_init() function
will give you a pointer to the class vtable for the parent type T_p while you're
iterating over parent types. What if you want to access the actual class vtable of
the type T, though? Well, you can because the actual signature of instance_init() is:
void (* GInstanceInitFunc) (GTypeInstance *instance, gpointer g_class);
i.e. all instance_init() functions get passed the instance they are initialising
and the class vtable of the real type you're instantiating.
This is how GtkToolButton works: it "peeks ahead" at instance initialisation time,
to use the button_type class field of the actual type you're instantiating,
and calls g_object_new() with it to store the resulting object in its own private
data structure.
This whole contrived mechanism is needed to allow out-of-tree tool buttons to just
set the button type on their class init, and have their parent class create the
button they want, instead of asking all tool buttons to do this themselves and have
a virtual function called get_button() for GtkToolButton to call whenever it needs
to operate on the button instance.
Now we're coming to a close: we cannot use the G_DEFINE_TYPE macro because the
instance_init() function it creates internally will not pass the class pointer
to your custom instance_init(). Since we cannot use G_DEFINE_TYPE, we also cannot use
G_ADD_PRIVATE either.
This is the reason why, when I ported GTK 3 to the new private instance data structure
macros, I left GtkToolButton alone. I should have left a comment there, because @matthiasc
tried doing that as well, and then had to revert it in commit
1c4a7bd5. So: my bad,
sorry about that.
If we want to drop the G_TYPE_INSTANCE_GET_PRIVATE and the g_type_class_add_private() calls,
we cannot use G_DEFINE_TYPE, but what we can do is unrolling what the macros do themselves:
- add a global GtkToolButton_private_offset variable
- add a static inline gtk_tool_button_get_instance_private() that does return
(G_STRUCT_MEMBER_P (self, GtkToolButton_private_offset));
- call g_type_add_instance_private (g_define_type_id, sizeof (GtkToolButtonPrivate)) inside
gtk_tool_button_get_type() and store the result in GtkToolButton_private_offset
- replace g_type_class_add_private() inside gtk_tool_button_class_init() with
g_type_class_adjust_private_offset (klass, &GtkToolButton_private_offset)
"
Javier Jardón [Tue, 6 Nov 2018 13:45:58 +0000 (13:45 +0000)]
gtk/gtktextview.c: Remove unused GTK_TEXT_VIEW_GET_PRIVATE() macro
Timm Bäder [Tue, 6 Nov 2018 09:52:11 +0000 (09:52 +0000)]
Merge branch 'wip/3v1n0/recent-info-cleanup' into 'master'
gtk-autocleanups: add cleanup function for GtkRecentInfo
See merge request GNOME/gtk!409
Matthias Clasen [Mon, 5 Nov 2018 23:12:40 +0000 (18:12 -0500)]
wayland: Fix a thinko in settings portal support
When we decide to fall back because the settings portal
is not present, adhere to that decision elsewhere. And
treat the fontconfig-timestamp like the other special-cased
settings, with G_TYPE_NONE.
Marco Trevisan [Mon, 5 Nov 2018 21:37:42 +0000 (21:37 +0000)]
gtk-autocleanups: add cleanup function for GtkRecentInfo
Matthias Clasen [Sun, 4 Nov 2018 20:57:26 +0000 (20:57 +0000)]
Merge branch 'wip/settings-portal' into 'master'
settings portal
See merge request GNOME/gtk!403
Matthias Clasen [Thu, 1 Nov 2018 23:47:46 +0000 (19:47 -0400)]
wayland: Support the settings portal
Under Wayland, we are currently directly using GSettings
for desktop settings. But in a sandbox, we may not have
access to dconf, so this may fail. Use the new settings
portal instead.
Matthias Clasen [Thu, 1 Nov 2018 17:46:04 +0000 (13:46 -0400)]
Move the should_use_portal helper to gdk
We want to use it there too, in the future.
Update all callers.
Matthias Clasen [Thu, 1 Nov 2018 17:31:10 +0000 (13:31 -0400)]
Use a simpler sandbox check
No need to use the runtime dir and allocate a string.
We can just check in /.
Matthias Clasen [Fri, 2 Nov 2018 16:18:25 +0000 (16:18 +0000)]
Merge branch 'wip/fmuellner/deco-setting' into 'master'
wayland: Remove GNOME Classic-specific workaround
See merge request GNOME/gtk!400
Florian Müllner [Fri, 2 Nov 2018 15:04:56 +0000 (16:04 +0100)]
wayland: Remove GNOME Classic-specific workaround
As GSettings now supports session-specific defaults, GNOME Classic
no longer uses a separate schema and the decoration layout is always
determined by the regular schema.
This essentially reverts commit
add67b516cb6 (although the code was
moved since then).
https://gitlab.gnome.org/GNOME/gtk/merge_requests/400
John Ralls [Sat, 20 Oct 2018 19:27:46 +0000 (12:27 -0700)]
GdkQuartz: Handle NULL from [NSGraphicsContext currentContext].
By returning a default surface. The situation where there's no
currentContext arises when GtkCSS is trying to determine the
layout sizes so no actual display is necessary.
Closes: #1411
John Ralls [Mon, 15 Oct 2018 17:45:57 +0000 (10:45 -0700)]
Use [NSGraphicsContext CGContext] instead of graphicsPort after Yosemite.
John Ralls [Mon, 15 Oct 2018 17:41:15 +0000 (10:41 -0700)]
Update GDK_OSX versions to current MacOS release.
Piotr Drąg [Wed, 31 Oct 2018 17:46:48 +0000 (18:46 +0100)]
Update POTFILES.in
Timm Bäder [Wed, 31 Oct 2018 13:39:08 +0000 (13:39 +0000)]
Merge branch 'wip/carlosg/public-legacy-controller' into 'master'
Make legacy controller public
See merge request GNOME/gtk!388
Timm Bäder [Fri, 26 Oct 2018 09:25:36 +0000 (09:25 +0000)]
Merge branch '1422-gtkentry-s-minimum-width-is-hardcoded-to-150px-GTK4' into 'master'
gtkentry: set minimum-width to 0 instead of 150
Closes #1422 and evince#1002
See merge request GNOME/gtk!393
Matej Urbančič [Thu, 25 Oct 2018 20:06:19 +0000 (22:06 +0200)]
Updated Slovenian translation
Matej Urbančič [Thu, 25 Oct 2018 20:03:51 +0000 (22:03 +0200)]
Added Slovenian translation
Nelson Benítez León [Sun, 21 Oct 2018 12:07:36 +0000 (17:07 +0500)]
gtkentry: set minimum-width to 0 instead of 150
and use 150 as natural-width.
Currently there's no way for a GtkEntry to be less
than 150px wide (apart from using "width-chars" property),
this is too much for a default minimum-width, an app
developer may need to have a shorter GtkEntry, for example
when the UI it's been shrunk by the user (see [1]) or when
you want to match the size of another widget (which is less
than 150px) see [2] for Evince bug on using
gtk_combo_box_new_with_model_and_entry() for PDF forms where
GtkEntry of ComboBox is too wide and doesn't match the combo
list width.
Using "width-chars" property may be a workaround to obtain
a short minimum-width for the entry, but is not a proper
solution for the mentioned cases as you may not know how
short your GtkEntry will be, or the fact that using "chars"
as a width unit is not pixel accurate.
Curious note: the commit that introduced the GtkEntry
minimum-width to be 150px is from 20 years ago, see
https://bit.ly/2ySEfK4
[1] This change was already suggested by Benjamin Otte
in a blog comment https://bit.ly/2J96wRo
[2] Fixes issue evince#1002
Timm Bäder [Wed, 24 Oct 2018 09:42:12 +0000 (09:42 +0000)]
Merge branch 'nirbheek/meson-fallback-dep-fixes' into 'master'
Misc meson fixes for using subproject dependencies
See merge request GNOME/gtk!232
Kristjan SCHMIDT [Wed, 24 Oct 2018 08:14:41 +0000 (08:14 +0000)]
Update Esperanto translation
Jakub Steiner [Mon, 22 Oct 2018 08:31:20 +0000 (10:31 +0200)]
Adwaita: prevent devel styling break selection mode
- Selection mode does not get the special devel styling.
- removed teh last-child() selector for it doesn't work anymore.
Better style all section of the headerbar than none. Proper fix pending.
https://source.puri.sm/Librem5/libhandy/issues/57
Ignacio Casal Quinteiro [Sun, 7 Oct 2018 19:51:35 +0000 (21:51 +0200)]
quartz: do not cache the screen in the gdkmonitor
Instead we just cache the monitor number and get
out of it the nsscreen when it is needed. This is
a requirement since it nsscreen it is not supposed
to be cached.
Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/1312
Matthias Clasen [Tue, 16 Oct 2018 20:49:42 +0000 (20:49 +0000)]
Merge branch '1397-gtknotebook-built-in-popup-menu-listing-tabs-doesn-t-use-tab-label-text-for-the-last-tab-4' into 'master'
Notebook: Ensure menu label updates with tab_label
Closes #1397
See merge request GNOME/gtk!386
LRN [Mon, 15 Oct 2018 22:48:14 +0000 (22:48 +0000)]
Merge branch 'lrn/zorder-gtk4' into 'master'
Don't let the OS maintain relative Z-order for windows (GTK4)
See merge request GNOME/gtk!197
Carlos Garnacho [Mon, 15 Oct 2018 15:31:48 +0000 (17:31 +0200)]
tests: Drop "saved positions" test in testgtk
This test solely relies on configure events, which aren't supported anymore.
Carlos Garnacho [Mon, 15 Oct 2018 15:30:15 +0000 (17:30 +0200)]
tests: Drop ::event handler in testgtk
We can use ::size-allocate for it, as window positions in root coordinates
are neither supported nor crucial here.
Carlos Garnacho [Mon, 15 Oct 2018 15:29:32 +0000 (17:29 +0200)]
testsuite: Fix gestures tests for the legacy controller
Let it create one with the right propagation phase, so the event propagation
chain stays the same.
Carlos Garnacho [Fri, 12 Oct 2018 17:52:58 +0000 (19:52 +0200)]
tests: Use GtkEventControllerMotion in testpopup
Track motion through it, instead of a GtkWidget::event handler.
Carlos Garnacho [Fri, 12 Oct 2018 17:45:30 +0000 (19:45 +0200)]
tests: Remove ::event handler in testwindowsize
We just want widget size here, not windowing configuration events.
Carlos Garnacho [Fri, 12 Oct 2018 17:45:00 +0000 (19:45 +0200)]
gtkwidget: Drop obsolete code
This path is not being hit anymore, gtkmain.c does handle those events
itself.
Carlos Garnacho [Fri, 12 Oct 2018 15:35:44 +0000 (17:35 +0200)]
testsuite: Fix gestures test
Was broken by the removal of the default GtkEventControllerLegacy.
Carlos Garnacho [Fri, 12 Oct 2018 15:30:59 +0000 (17:30 +0200)]
gtkeventcontrollerlegacy: Make public
And move ::event into it, dropping the GtkWidget::event signal.
Daniel Boles [Fri, 12 Oct 2018 22:12:53 +0000 (23:12 +0100)]
Notebook: Ensure menu_label updates with tab_label
This was noticed in Firefox and demonstrated using a GtkBuilder ui file.
buildable_add_child() calls set_tab_label(), but the latter did nothing
to update the menu_label corresponding to that tab with the new text.
Using Builder to populate the tab child, only tabs other than last got
the right non-default labels, and even that was mostly coincidental, as
adding the main child called update_labels() via real_insert_page(), so
it took effect when the 2nd last main child is added, updating the rest
but leaving the last with the default label, not that given in Builder.
Fix by factoring out the code from child_reordered() to a new helper
menu_item_recreate() and calling that in set_tab_label(), so that
whenever the tab_label is updated, so is its corresponding menu_label.
This fixes the reported case and presumably others that we could write.
fixes https://gitlab.gnome.org/GNOME/gtk/issues/1397
Daniel Boles [Fri, 12 Oct 2018 22:40:16 +0000 (23:40 +0100)]
Notebook: Don't notify 2x from set_tab_label_text
It calls set_tab_label(), which already does that.
Daniel Boles [Fri, 12 Oct 2018 21:09:42 +0000 (22:09 +0100)]
gtk-demo/main: Suppress implicit fallthru warning
Comments matched to reassure the compiler that fallthrough is
intentional are supposed to precede the case or default keywords, at
least in GCC, so the one here did not suppress the warning with GCC. We
can just the if condition and put the comment at the end to solve that.
https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
Nirbheek Chauhan [Fri, 12 Oct 2018 08:53:53 +0000 (14:23 +0530)]
.gitignore: Ignore all subdirs in the subprojects dir
Nirbheek Chauhan [Mon, 23 Jul 2018 09:25:25 +0000 (14:55 +0530)]
meson: Always fetch pangoft2_dep from the pango subproject
This ensures that we will use pangoft2 if it is available, and not if
it is not available.
See: https://gitlab.gnome.org/GNOME/pango/merge_requests/6
Nirbheek Chauhan [Fri, 6 Jul 2018 18:50:41 +0000 (00:20 +0530)]
meson: Use proxy-libintl subproject when needed and available
Such as on Windows with MSVC.
Nirbheek Chauhan [Fri, 6 Jul 2018 18:49:57 +0000 (00:19 +0530)]
meson: Add a fallback for the harfbuzz dependency
This meson port is not upstream yet, so a wrap file is not included.
Upstream has expressed interest but the port hasn't been tested on all
platforms yet. Will be added when it gets upstreamed.
Link to WIP port: https://github.com/centricular/harfbuzz
Timm Bäder [Thu, 11 Oct 2018 10:27:17 +0000 (12:27 +0200)]
emojichooser: Pass chooser to add_emoji
Timm Bäder [Mon, 8 Oct 2018 16:05:56 +0000 (18:05 +0200)]
widget: Stop adding a legacy event controller
The only event signal left is ::event and everything needing that
connects to it directly.
Timm Bäder [Sat, 6 Oct 2018 07:23:26 +0000 (09:23 +0200)]
gl renderer: Save some matrix multiplications
We do this for every single node, which is a little costly, especially
since the common case for the modelview matrix these days is a simple
translation. So, check whether the new modelview matrix is only a
translation matrix and if so, don't do a full matrix multiplication per
node.
Timm Bäder [Wed, 26 Sep 2018 07:36:31 +0000 (09:36 +0200)]
spinbutton: Don't use gfloat in a code sample
Timm Bäder [Wed, 10 Oct 2018 11:12:03 +0000 (11:12 +0000)]
Merge branch 'file-sealing' into 'master'
gdk: seal in-memory files when possible
See merge request GNOME/gtk!353
Timm Bäder [Wed, 10 Oct 2018 11:09:25 +0000 (11:09 +0000)]
Merge branch 'gtkbuilder-tag-end-wrong-type' into 'master'
GtkBuildable: Fix the type of the user_data in GtkBuildable.custom_tag_end
See merge request GNOME/gtk!378
Chun-wei Fan [Tue, 9 Oct 2018 09:06:39 +0000 (17:06 +0800)]
gtkimcontextime.c: Fix Korean input
Commit
64a489ad inadvertently introduced a regression that broke Korean
text input because the changes there resulted that only the last input
string that we have from ImmGetCompositionStringW() for each time the
commit signal is emitted is kept, and also as a result the final Korean
character that is input by hitting space is also lost as a result, as we
didn't check for whether we are done with preediting.
Fix these issues by doing the following when we receive the
WM_IME_COMPOSITION message with GCS_RESULTSTR from Windows:
-Do not emit the commit signal during WM_IME_ENDCOMPOSITION, and...
-Emit the commit signal anyways, as we did before
c255ba68, however...
-We still save up the string to commit, because we need to re-compute
the cursor position when we do ->get_preedit_string(), which needs to
take the GCS_RESULTSTR string we get from WM_IME_COMPOSITION into
account as well, so that we avoid getting the Pango criticals that
occur during Chinese (and most likely Japanese) input as the cursor
position is out-of-range.
Fixes issue #1350.
Chun-wei Fan [Tue, 9 Oct 2018 08:24:15 +0000 (16:24 +0800)]
testsuite/gtk/filterlistmodel.c: Avoid GCCism
Pointer arithmetic on gpointers (void *) is a GCCism, so avoid that by
being more explicit with things.
Chun-wei Fan [Tue, 9 Oct 2018 08:22:28 +0000 (16:22 +0800)]
testsuite/gtk/[flatten|sort]listmodel.c: Avoid VLA usage
Visual Studio is unlikely to support VLAs at any point, so avoid using
them and use g_newa() instead.
Robert Ancell [Sun, 7 Oct 2018 22:34:43 +0000 (11:34 +1300)]
GtkBuildable: Fix the type of the user_data in GtkBuildable.custom_tag_end
The previous type was a pointer to a pointer, which seems to be a copy-paste
error from GtkBuildable.custom_tag_start which is an out parameter. It was
always cast in use so this is an API break, but not an ABI one.
Daniel Boles [Sun, 7 Oct 2018 17:28:31 +0000 (17:28 +0000)]
Merge branch 'master' into 'master'
gtkstack: fix null pointer dereference
See merge request GNOME/gtk!361